package com.hospital.insurancepeople.module.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@TableName("Prepay_Apply_Rec")
public class PrepayApplyRec {

    @NotBlank(message = "患者ID不能为空")
    private String patientId;
    private Date hisTransactDate;
    private String operatorNo;
    @NotBlank(message = "交易时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date esbTransactDate;
    private String hisTranStatus = "0";
    private String esbTranStatus = "0";
    @NotBlank(message = "患者在线申请退款类型不能为空")
    private String inpOrOutp;
    @NotBlank(message = "发起机构名称不能为空")
    private String hospitalName;
    @NotBlank(message = "发起机构编码不能为空")
    private String hospitalCode;
}
